import { viewModel } from 'nc-lightapp-front';
import config from '../config';

const { setGlobalStorage, getGlobalStorage, removeGlobalStorage } = viewModel;

//查询区按钮点击事件
export default function (props, data) {
    // const searchData = props.search.getAllSearchData(config.headcode);
    // console.log(data, searchData)
    // if (data && data.conditions) {
    //     setDefData(config.searchCache, config.dataSource, searchData);
    // } else {
    //     setDefData(config.searchCache, config.dataSource, {
    //         logic: 'and',
    //         conditions: []
    //     });
    // }
    // setGlobalStorage('sessionStorage', config.searchCache, JSON.stringify(data));
    this.loadData(true);
}
